from functools import reduce
from typing import *


class Solution:

    def game(self, guess: List[int], answer: List[int]) -> int:
        return sum([int(a == b) for a, b in zip(guess, answer)])


so = Solution()
print(so.game(guess=[1, 2, 3], answer=[1, 2, 3]))

guess = [1, 2, 3]
answer = [1, 2, 3]
k = reduce(lambda a, b: a + b, [int(a == b) for a, b in zip(guess, answer)])
print(k)
